<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>查询用户信息</title>
    {% if current_user%}
        <p>你好：{{current_user}}</p>
        <p>
            <form action="/UserLogout" method="get">
                {% module xsrf_form_html()%}
                <input type="submit" value="登出">
            </form>
        </p>
    {% end %}
    {% if users is not None %}
    <ul>
        {% for i in range(len(users)) %}
        <li>用户ID：{{users[i].id}}</li>
        <li>用户姓名：{{users[i].name}}</li>
        {% end %}
    </ul>
    {% end %}
    <form action="/UserInfo/SearchUser" method="post">
        {% module xsrf_form_html() %}
        <input type="submit" value="查询">
    </form>
</head>
<body>

</body>
</html>